/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JFrameConsulta.java
 *
 * Created on 29/10/2011, 11:08:03
 */
package visao;

/**
 *
 * @author David
 */
public class JFrameConsulta extends javax.swing.JFrame {

    /** Creates new form JFrameConsulta */
    public JFrameConsulta() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lblAnimaisClientConsulta = new javax.swing.JLabel();
        jScrollPaneAnimaisCli = new javax.swing.JScrollPane();
        jTableAnimaisCli = new javax.swing.JTable();
        tbrCliente = new javax.swing.JToolBar();
        btnNovo = new javax.swing.JButton();
        btnExcluir = new javax.swing.JButton();
        btnEditar = new javax.swing.JButton();
        btnSalvar = new javax.swing.JButton();
        lblConsultasReali = new javax.swing.JLabel();
        btnBuscarConsulta = new javax.swing.JButton();
        lblResultadoConsulta = new javax.swing.JLabel();
        jScrollPaneResultadoConsulta = new javax.swing.JScrollPane();
        tbeResultConsulta = new javax.swing.JTable();
        jScrollPaneConsultasReali = new javax.swing.JScrollPane();
        tblConsultaRealizadas = new javax.swing.JTable();
        lblPesquisaConsulta = new javax.swing.JLabel();
        cbxFiltroConsulta = new javax.swing.JComboBox();
        txtPesquisaConsulta = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        pnlDadosConsulta = new javax.swing.JPanel();
        lblDescCli = new javax.swing.JLabel();
        txtDescCli = new javax.swing.JTextField();
        lblAnamnese = new javax.swing.JLabel();
        txtAnamnese = new javax.swing.JTextField();
        lblExames = new javax.swing.JLabel();
        btnExames = new javax.swing.JButton();
        jScrollPaneExames = new javax.swing.JScrollPane();
        jTableExames = new javax.swing.JTable();
        lbltratamento = new javax.swing.JLabel();
        btnTratamento = new javax.swing.JButton();
        jScrollPaneTratamento = new javax.swing.JScrollPane();
        jTableAnimal9 = new javax.swing.JTable();
        lblReceituario = new javax.swing.JLabel();
        txtReceituario = new javax.swing.JTextField();
        btnImprimir = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        lblAnimaisClientConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        lblAnimaisClientConsulta.setForeground(new java.awt.Color(51, 51, 51));
        lblAnimaisClientConsulta.setText("Animais do Cliente");

        jTableAnimaisCli.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableAnimaisCli.setForeground(new java.awt.Color(51, 51, 51));
        jTableAnimaisCli.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "Nome", "Especie", "Raça"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableAnimaisCli.setEnabled(false);
        jScrollPaneAnimaisCli.setViewportView(jTableAnimaisCli);

        tbrCliente.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        tbrCliente.setRollover(true);
        tbrCliente.setToolTipText("Sair");

        btnNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/page.png"))); // NOI18N
        btnNovo.setToolTipText("Novo");
        btnNovo.setFocusable(false);
        btnNovo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnNovo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        btnNovo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnNovoActionPerformed(evt);
            }
        });
        tbrCliente.add(btnNovo);

        btnExcluir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/bin_closed.png"))); // NOI18N
        btnExcluir.setToolTipText("Excluir");
        btnExcluir.setFocusable(false);
        btnExcluir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnExcluir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        tbrCliente.add(btnExcluir);

        btnEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/pencil.png"))); // NOI18N
        btnEditar.setToolTipText("Editar");
        btnEditar.setFocusable(false);
        btnEditar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnEditar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        tbrCliente.add(btnEditar);

        btnSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/disk.png"))); // NOI18N
        btnSalvar.setToolTipText("Salvar");
        btnSalvar.setFocusable(false);
        btnSalvar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnSalvar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        tbrCliente.add(btnSalvar);

        lblConsultasReali.setFont(new java.awt.Font("Verdana", 0, 12));
        lblConsultasReali.setForeground(new java.awt.Color(51, 51, 51));
        lblConsultasReali.setText("Consultas Realizadas");

        btnBuscarConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        btnBuscarConsulta.setForeground(new java.awt.Color(51, 51, 51));
        btnBuscarConsulta.setText("Buscar");

        lblResultadoConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        lblResultadoConsulta.setForeground(new java.awt.Color(51, 51, 51));
        lblResultadoConsulta.setText("Resultado da Pesquisa de Clientes");

        tbeResultConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        tbeResultConsulta.setForeground(new java.awt.Color(51, 51, 51));
        tbeResultConsulta.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Código", "Nome", "Endereço", "RG "
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneResultadoConsulta.setViewportView(tbeResultConsulta);

        tblConsultaRealizadas.setFont(new java.awt.Font("Verdana", 0, 12));
        tblConsultaRealizadas.setForeground(new java.awt.Color(51, 51, 51));
        tblConsultaRealizadas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Tipo de tratamento", "Ocorrencias", "Data prevista de inicio", "Data prevista de termino"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tblConsultaRealizadas.setEnabled(false);
        jScrollPaneConsultasReali.setViewportView(tblConsultaRealizadas);

        lblPesquisaConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        lblPesquisaConsulta.setForeground(new java.awt.Color(51, 51, 51));
        lblPesquisaConsulta.setText("Pesquisar por:");

        cbxFiltroConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        cbxFiltroConsulta.setForeground(new java.awt.Color(51, 51, 51));
        cbxFiltroConsulta.setMaximumRowCount(4);
        cbxFiltroConsulta.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Código", "Nome ", "CPF", "Cidade", "Endereço" }));

        txtPesquisaConsulta.setFont(new java.awt.Font("Verdana", 0, 12));
        txtPesquisaConsulta.setForeground(new java.awt.Color(51, 51, 51));
        txtPesquisaConsulta.setToolTipText("");

        jLabel18.setFont(new java.awt.Font("Verdana", 0, 18));
        jLabel18.setForeground(new java.awt.Color(102, 102, 255));
        jLabel18.setText("Cadastro de Consulta");
        jLabel18.setName("lblCadastroAnimal"); // NOI18N

        pnlDadosConsulta.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Dados da Consulta", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Verdana", 1, 12), new java.awt.Color(51, 51, 51))); // NOI18N

        lblDescCli.setFont(new java.awt.Font("Verdana", 0, 12));
        lblDescCli.setForeground(new java.awt.Color(51, 51, 51));
        lblDescCli.setText("Descrição do problema informado pelo cliente:");

        lblAnamnese.setFont(new java.awt.Font("Verdana", 0, 12));
        lblAnamnese.setForeground(new java.awt.Color(51, 51, 51));
        lblAnamnese.setText("Anamnese:");

        lblExames.setFont(new java.awt.Font("Verdana", 0, 12));
        lblExames.setForeground(new java.awt.Color(51, 51, 51));
        lblExames.setText("Exames necessários:");

        btnExames.setFont(new java.awt.Font("Verdana", 0, 12));
        btnExames.setForeground(new java.awt.Color(51, 51, 51));
        btnExames.setText("...");
        btnExames.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnExamesActionPerformed(evt);
            }
        });

        jTableExames.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableExames.setForeground(new java.awt.Color(51, 51, 51));
        jTableExames.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Exame", "Preparatorio", "Diagnostico", "Escolher"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Boolean.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, true, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableExames.setEnabled(false);
        jScrollPaneExames.setViewportView(jTableExames);

        lbltratamento.setFont(new java.awt.Font("Verdana", 0, 12));
        lbltratamento.setForeground(new java.awt.Color(51, 51, 51));
        lbltratamento.setText("Tratamento sugerido:");

        btnTratamento.setFont(new java.awt.Font("Verdana", 0, 12));
        btnTratamento.setForeground(new java.awt.Color(51, 51, 51));
        btnTratamento.setText("...");
        btnTratamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnTratamentoActionPerformed(evt);
            }
        });

        jTableAnimal9.setFont(new java.awt.Font("Verdana", 0, 12));
        jTableAnimal9.setForeground(new java.awt.Color(51, 51, 51));
        jTableAnimal9.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "Tipo de tratamento", "Ocorrencias", "Data prevista de inicio", "Data prevista de termino", "Prognostico", "Escolher"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, true, true
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableAnimal9.setEnabled(false);
        jScrollPaneTratamento.setViewportView(jTableAnimal9);

        lblReceituario.setFont(new java.awt.Font("Verdana", 0, 12));
        lblReceituario.setForeground(new java.awt.Color(51, 51, 51));
        lblReceituario.setText("Descrição do Receituário");

        txtReceituario.setFont(new java.awt.Font("Verdana", 0, 12));
        txtReceituario.setForeground(new java.awt.Color(51, 51, 51));

        btnImprimir.setFont(new java.awt.Font("Verdana", 0, 12));
        btnImprimir.setForeground(new java.awt.Color(51, 51, 51));
        btnImprimir.setText("Imprimir Receituário");

        javax.swing.GroupLayout pnlDadosConsultaLayout = new javax.swing.GroupLayout(pnlDadosConsulta);
        pnlDadosConsulta.setLayout(pnlDadosConsultaLayout);
        pnlDadosConsultaLayout.setHorizontalGroup(
            pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDadosConsultaLayout.createSequentialGroup()
                .addContainerGap(14, Short.MAX_VALUE)
                .addGroup(pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblAnamnese)
                    .addGroup(pnlDadosConsultaLayout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addComponent(lblExames, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnExames))
                    .addGroup(pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtDescCli, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtAnamnese, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlDadosConsultaLayout.createSequentialGroup()
                            .addGap(4, 4, 4)
                            .addComponent(jScrollPaneExames, javax.swing.GroupLayout.PREFERRED_SIZE, 560, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(lblReceituario)
                        .addComponent(txtReceituario, javax.swing.GroupLayout.PREFERRED_SIZE, 562, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(btnImprimir, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 205, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlDadosConsultaLayout.createSequentialGroup()
                        .addComponent(lbltratamento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnTratamento))
                    .addComponent(jScrollPaneTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, 562, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDescCli))
                .addContainerGap())
        );
        pnlDadosConsultaLayout.setVerticalGroup(
            pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pnlDadosConsultaLayout.createSequentialGroup()
                .addContainerGap(15, Short.MAX_VALUE)
                .addComponent(lblDescCli)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtDescCli, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblAnamnese)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(txtAnamnese, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblExames, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExames))
                .addGap(6, 6, 6)
                .addComponent(jScrollPaneExames, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnlDadosConsultaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbltratamento)
                    .addComponent(btnTratamento))
                .addGap(8, 8, 8)
                .addComponent(jScrollPaneTratamento, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblReceituario)
                .addGap(6, 6, 6)
                .addComponent(txtReceituario, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnImprimir)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(lblPesquisaConsulta)
                        .addGap(18, 18, 18)
                        .addComponent(cbxFiltroConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(txtPesquisaConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(btnBuscarConsulta))
                    .addComponent(lblAnimaisClientConsulta)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(2, 2, 2)
                        .addComponent(lblConsultasReali))
                    .addComponent(lblResultadoConsulta)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPaneAnimaisCli, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPaneResultadoConsulta, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 562, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPaneConsultasReali, javax.swing.GroupLayout.PREFERRED_SIZE, 557, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(pnlDadosConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addComponent(tbrCliente, javax.swing.GroupLayout.DEFAULT_SIZE, 1188, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel18)
                .addContainerGap(985, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(tbrCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel18)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(cbxFiltroConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtPesquisaConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnBuscarConsulta)
                            .addComponent(lblPesquisaConsulta))
                        .addGap(18, 18, 18)
                        .addComponent(lblResultadoConsulta)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPaneResultadoConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblAnimaisClientConsulta)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPaneAnimaisCli, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lblConsultasReali)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPaneConsultasReali, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(pnlDadosConsulta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

private void btnNovoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNovoActionPerformed

}//GEN-LAST:event_btnNovoActionPerformed

private void btnExamesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExamesActionPerformed
// TODO add your handling code here:
    JFrameExames abrir = new JFrameExames();
    abrir.setVisible(true);
    // Para nao fechar o Frame Consulta
    abrir.setDefaultCloseOperation(abrir.DISPOSE_ON_CLOSE);
}//GEN-LAST:event_btnExamesActionPerformed

private void btnTratamentoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnTratamentoActionPerformed
// TODO add your handling code here:
    JFrameTipoTratamento abrir = new JFrameTipoTratamento();
    abrir.setVisible(true);
    // Para nao fechar o Frame Consulta
    abrir.setDefaultCloseOperation(abrir.DISPOSE_ON_CLOSE);
}//GEN-LAST:event_btnTratamentoActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(JFrameConsulta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(JFrameConsulta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(JFrameConsulta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFrameConsulta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JFrameConsulta().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscarConsulta;
    private javax.swing.JButton btnEditar;
    private javax.swing.JButton btnExames;
    private javax.swing.JButton btnExcluir;
    private javax.swing.JButton btnImprimir;
    private javax.swing.JButton btnNovo;
    private javax.swing.JButton btnSalvar;
    private javax.swing.JButton btnTratamento;
    private javax.swing.JComboBox cbxFiltroConsulta;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JScrollPane jScrollPaneAnimaisCli;
    private javax.swing.JScrollPane jScrollPaneConsultasReali;
    private javax.swing.JScrollPane jScrollPaneExames;
    private javax.swing.JScrollPane jScrollPaneResultadoConsulta;
    private javax.swing.JScrollPane jScrollPaneTratamento;
    private javax.swing.JTable jTableAnimaisCli;
    private javax.swing.JTable jTableAnimal9;
    private javax.swing.JTable jTableExames;
    private javax.swing.JLabel lblAnamnese;
    private javax.swing.JLabel lblAnimaisClientConsulta;
    private javax.swing.JLabel lblConsultasReali;
    private javax.swing.JLabel lblDescCli;
    private javax.swing.JLabel lblExames;
    private javax.swing.JLabel lblPesquisaConsulta;
    private javax.swing.JLabel lblReceituario;
    private javax.swing.JLabel lblResultadoConsulta;
    private javax.swing.JLabel lbltratamento;
    private javax.swing.JPanel pnlDadosConsulta;
    private javax.swing.JTable tbeResultConsulta;
    private javax.swing.JTable tblConsultaRealizadas;
    private javax.swing.JToolBar tbrCliente;
    private javax.swing.JTextField txtAnamnese;
    private javax.swing.JTextField txtDescCli;
    private javax.swing.JTextField txtPesquisaConsulta;
    private javax.swing.JTextField txtReceituario;
    // End of variables declaration//GEN-END:variables
}
